package pers.xiaojun.boot.module.system.controller.user.vo.user;

import cn.idev.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import pers.xiaojun.boot.common.constants.DictTypeConstants;
import pers.xiaojun.boot.excel.annotation.DictType;
import pers.xiaojun.boot.excel.convert.DictConvert;

/**
 * 导入用户数据实体
 *
 * @author xiaojun
 * @since 2025-11-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserImportExcelVO {

    @ExcelProperty("登录名称")
    private String username;

    @ExcelProperty("用户名称")
    private String nickname;

    @ExcelProperty("部门编号")
    private Long deptId;

    @ExcelProperty("用户邮箱")
    private String email;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty(value = "用户性别", converter = DictConvert.class)
    @DictType(DictTypeConstants.USER_SEX)
    private Integer sex;

    @ExcelProperty(value = "账号状态", converter = DictConvert.class)
    @DictType(DictTypeConstants.COMMON_STATUS)
    private Integer status;

}
